const path = require('path')
module.exports = {
  devServer: {
    port: 9527,
    open: true
  },
  lintOnSave: false, // 关闭eslint 保存文件就检查代码格式
  // eslint-disable-next-line no-irregular-whitespace
  chainWebpack: config => {
    config.resolve.alias
      // eslint-disable-next-line no-irregular-whitespace
      .set('@', path.join('src'))
      .set('_components', path.join(__dirname, 'src/components'))
      .set('_views', path.join(__dirname, 'src/views'))
  }

}
